﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AirLinq.Providers.Sql {
	public class SqlIsNull : SqlPredicate{
		private readonly SqlExpression _test;
		public SqlIsNull(SqlExpression test) {
			if (_test == null) {
				throw new ArgumentNullException("inner");
			}
			_test = test;
		}
		public SqlExpression Test {
			get {
				return _test;
			}
		}
		public override bool IsNotInjectionable {
			get {
				return true;
			}
		}
		public override SqlNodeType NodeType {
			get {
				return SqlNodeType.IsNull;
			}
		}
	}
}
